package com.xmall.msg.entity.sys;

import com.xmall.msg.base.BaseMsg;
import com.xmall.msg.base.MsgSourceType;
import com.xmall.define.request.sys.OperateLogRequest;
import lombok.Data;

import java.io.Serializable;

@Data
public class OperateLogMsg extends BaseMsg implements Serializable {

    private OperateLogRequest operateLogRequest;

    public OperateLogMsg build(MsgSourceType msgSourceType, String exchange, String routingKey) {
        super.build(msgSourceType, exchange, routingKey);
        return this;
    }

    private void setOperateLogRequest(OperateLogRequest operateLogRequest) {
        this.operateLogRequest = operateLogRequest;
    }

    public OperateLogMsg operateLog(OperateLogRequest operateLogRequest) {
        this.operateLogRequest = operateLogRequest;
        return this;
    }
}
